package com.teziyou.commodity.bean;

import java.util.List;

@SuppressWarnings("rawtypes")
public class Page {
	
	private int pageNo;
	private int pageSize = 10;
	private int totalPage;
	private int totalRow;
	private List list;
	public Page(int pageNo, int totalRow, List list) {
		super();
		this.pageNo = pageNo==0?1:pageNo;
		this.totalRow = totalRow;
		this.list = list;
		int num = totalRow/pageSize;
		totalPage = totalRow%pageSize==0?num:num+1;
	}
	public Page() {
		super();
	}
	public int getPageNo() {
		return pageNo;
	}
	public void setPageNo(int pageNo) {
		this.pageNo = pageNo;
	}
	public int getTotalPage() {
		return totalPage;
	}
	public void setTotalPage(int totalPage) {
		this.totalPage = totalPage;
	}
	public int getTotalRow() {
		return totalRow;
	}
	public void setTotalRow(int totalRow) {
		this.totalRow = totalRow;
	}
	public List getList() {
		return list;
	}
	public void setList(List list) {
		this.list = list;
	}

}
